package cn.itsource.romate.impl;

import cn.itsource.pojo.api.DriverResult;
import cn.itsource.result.R;
import cn.itsource.romate.api.DriverApi;
import cn.itsource.service.IDriverSummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * 📖：beishan
 * 🗓️：2024/4/18 19:01
 * =====================
 */
@RestController
public class DriverApiImpl implements DriverApi {
    @Autowired
    private IDriverSummaryService driverSummaryService;

    @Override
    public R<DriverResult> getDriverSummary(Long driverId) {
        DriverResult driverSummary = driverSummaryService.getDriverSummary(driverId);
        return R.success(driverSummary);
    }
}
